<template>
    <div>
        <van-nav-bar
          title="我的订单"
          left-text="返回"
          left-arrow
          @click-left="onClickLeft"
        />
        <van-card
          :num="item.num"
          :price="item.price"
          :title="item.title"
          :thumb="item.path"
          v-for="item in list"
          :key="item.id"
        />             
    </div>
</template>
<script>
export default {
  data() {
    return {
      list:''
    }
  },
  created() {
    this.list=this.$store.getters['common/getMyorders']
  },
  methods: {
    onClickLeft(){
      this.$router.go(-1)
    }
  },
}
</script>